<div>
<!-- <div class="modal-header">
    <h4 class="modal-title">
        为产品：{{p.name}} 设置价格日历
    </h4>
</div> -->
<div class="modal-body">

<div class="container-fluid">

    <div class="form-horizontal" ng-repeat="attr in p.attrlist" ng-if="attr.state == '1'">

    <div class="form-group"  >
        <div class="col-sm-4 col-xs-12">
            <p class="form-control-static">型号：{{attr.attr_name}}</p>
        </div>
    </div>


    <div class="form-group" >
        <div class="col-sm-7">
            <price-calendar 
              data="attr.daypricelist"
              showattrarr="showattrarr"
              clickday="clickday"
              refresh="refresh"
            ></price-calendar>
        </div>


        <div class="col-sm-5">
        	<div class="form-group"  >
        	<div class="col-sm-6 col-xs-12">
	            <input type="text" class="form-control" ng-model="attr.calendar.s" 
	            datetimepicker readonly startDate="{{now}}"
	            options="vm.options"
	            >
	        </div>

	        <div class="col-sm-6 col-xs-12">
	            <input type="text" class="form-control" ng-model="attr.calendar.e" 
	            datetimepicker readonly 
	            options="vm.options"
	            >
	        </div>
	        </div>

	        <div class="form-group"  >
	        <div class="col-sm-12">
	        	<label ng-repeat="w in weekDay"
                class="i-checks checkbox-inline">
                  <input type="checkbox" value="w.value"
                  ng-model="attr.calendar.week[$index]"
                  ng-checked="attr.calendar.week[$index]"
                  name='xingqi'
                  >
                  <i></i>
                  {{w.day}}
                </label>
	        </div>
	        </div>



	        <div class="form-group" >
		        <label class="col-sm-3 col-xs-4 control-label text-right">商城价格</label>
		        <div class="col-sm-4 col-xs-12">
		            <input type="number" class="form-control" 
		            ng-model="attr.calendar.guide_price" >
		        </div>
		    </div>

		    <div class="form-group" >
		        <label class="col-sm-3 col-xs-4 control-label text-right">成本价格</label>
		        <div class="col-sm-4 col-xs-12">
		            <input type="number" class="form-control" 
		            ng-model="attr.calendar.cost_price" >
		        </div>
		    </div>

		    <div class="form-group" >
		        <label class="col-sm-3 col-xs-4 control-label text-right">库存</label>
		        <div class="col-sm-4 col-xs-12">
		            <input type="number" class="form-control" 
		            ng-model="attr.calendar.current_stock_num" >
		        </div>
		    </div>

		    <div class="form-group" >
		        <div class="col-sm-12 col-xs-12">
		        	<button type="button" class="btn btn-primary btn-block"
		            ng-click="save(attr)"
		            >确定</button>
		        </div>
		    </div>

		    <div class="form-group" >
		        <div class="col-sm-12 col-xs-12">
		        	<button type="button" class="btn btn-danger btn-block"
		            ng-click="del(attr)"
		            >删除</button>
		        </div>
		    </div>


        </div>
    </div>


   <!--  <div class="form-group"  >
        <label class="col-sm-3 col-xs-4 control-label text-right"> </label>
        <div class="col-sm-4 col-xs-12">
            <button type="button" class="btn btn-primary btn-block"
            ng-click="save(attr)"
            >确定</button>
        </div>
    </div> -->
  

    </div>
        
</div>

</div>
<!-- <div class="modal-footer">
    <button class="btn btn-warning" type="button" ng-click="cancel()">返回</button>
</div> -->
</div>